import Layout from '@/layout'
export default {
  path: '/dispatch',
  component: Layout,
  redirect: '/dispatch/transport',
  name: 'Dispatch',
  meta: {
    title: '调度管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'transport',
      component: () => import('@/views/dispatch/transport/index'), // Parent router-view
      name: 'Transport',
      meta: { title: '运输任务管理' }
    },
    {
      path: 'line',
      component: () => import('@/views/dispatch/line/index'),
      name: 'Line',
      meta: { title: '线路管理' }
    },
    {
      path: 'parcel',
      component: () => import('@/views/dispatch/parcel/index'),
      name: 'Parcel',
      meta: { title: '取件作业管理' }
    },
    {
      path: 'delivery',
      component: () => import('@/views/dispatch/delivery/index'),
      name: 'Delivery',
      meta: { title: '派件作业管理' }
    }
  ]
}
